package org.jeecg.modules.school.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import org.jeecg.modules.school.entity.School;
import com.baomidou.mybatisplus.extension.service.IService;
import org.jeecg.modules.school.entity.vo.QueryVo;

import java.io.IOException;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author liujiamiao
 * @since 2020-11-18
 */
public interface SciSchoolService extends IService<School> {

    /**
     * 分页查询数据
     * @param page
     * @param size
     * @param queryVo
     * @return
     */
    IPage<School> queryPage(Integer page, Integer size, QueryVo queryVo);

    /**
     * 根据学校编码获取学校名称
     * @param school
     * @return
     */
    String querySchoolName(String school);

    /**
     * 根据学校名称获取学校编码
     * @param school
     * @return
     */
    String querySchoolCode(String school);
}
